class Dog {
    //成员变量
    public String name;
    public String color;

    public void barks() {
        System.out.println(name + "汪汪叫！");
    }
    public void wag() {
        System.out.println(name + "摇尾巴！");
    }

    public static void func(String ret) {
        System.out.println("fdsfsa");
    }
}

public class Test {
    public static void main(String[] args) {
        //实例化一个Dog对象
        Dog dog = new Dog();
        //int a = 10;
        dog.name = "来福";
        dog.color = "黑色";
        System.out.println(dog.name);
        System.out.println(dog.color);

        dog.barks();
        dog.wag();


        Dog dog2 = new Dog();
        dog2.name = "小灰";
        dog2.color = "灰色";



        Dog dog3 = new Dog();

        Dog dog4 = new Dog();

        //

    }
}